#!/bin/bash
cleanup()
{
	exit 1;
}
trap cleanup 1 2 3 6 15 
while :
do

ps -fe | grep testd | grep -v grep >> $1
ps -fe | grep sleep >> $1
echo `date` >> $1
sleep 5
done
exit
